<%@page import="com.sun.xml.internal.bind.v2.schemagen.xmlschema.Import"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<%@page import = "java.util.ArrayList" %>
<%@page import = "herguan.expertadvise.vo.UsersListVO" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Select Skill</title>
</head>

<body>
<table border="0" width="100%" cellpadding="0" cellspacing="0"> 
<tr>
				<td align="left" colspan="2" width="50%">
					<p><font size="6" face="Monotype Corsiva"><a href="#" style="color: #6699CC">Expert Advise</a></font></p>				
				</td>     
  </tr>

          <tr bgcolor="#6699CC">
				<td  align="center"  width="25%" class="tablecells" id="nav1" >
					<html:link page="/JSP/Welcome.jsp"><font color="white">Welcome</font></html:link>					
				</td>



			<td width="25%"  class="tablecells" id="nav2" bgcolor="#6fa46f">
			 <html:link page="/DisplaySkillAction.do">
			 <font color="white">Ask</font>			
				</html:link>
			</td>

			<td width="25%" class="tablecells" id="nav3" >
			<%if((String)session.getAttribute("userID") != null){ %> 
			<html:link page="/JSP/Login/logout.jsp" > <font color="white">  Logout </font></html:link> <%}else{%> <html:link page="/JSP/Login/userlogin.jsp" ><font color="white">Member Login</font></html:link>
			<%}%>
			</td>  			
           </tr>
			
<tr> <td colspan="4">&nbsp;</td></tr>
</table>
<%@ include file="../Includes/asknav.jsp"%>
 
<%if((String)session.getAttribute("userID") != null){ %> 

 <center>
<html:form
action="/DisplaySkillAction?action=checkoutuser" >
 <html:hidden property="action"/>
<p><b> <bean:message key="info.selectSkillUser"/> </b></p>
 <%-- <table style="font-weight:bold" >
           <logic:iterate id="skill"  property="skill" name="DisplaySkillForm">
            <tr><td> <html:multibox  property="skill" value="skillname"/>
            </td>
           <td> <bean:write name="skill"  property="skillname"/></td>
</tr>
        </logic:iterate>
        
        <tr>
        <td height="10">  
        </td>
        </tr>
        <tr >
        <td align="center" colspan="2">
<html:submit>Next</html:submit>
</td>
</tr>
</table> --%>
<table border="1">
<tr bgcolor="#6699CC">
<td>
Provider
</td>
<td>
Rating
</td>
<% for(int i=0 ; i<((ArrayList<UsersListVO>)session.getAttribute("skilleduser")).size() ; i++ ) {%>
<tr>
<td>
<%out.println("<input type=radio name=radiouser value="+ ((ArrayList<UsersListVO>)session.getAttribute("skilleduser")).get(i).getId() +">"+((ArrayList<UsersListVO>)session.getAttribute("skilleduser")).get(i).getLoginid()); %>
</td>
<td>
<%out.println("<p>" + ((ArrayList<UsersListVO>)session.getAttribute("skilleduser")).get(i).getRating() + "</p>") ; %>
</td>
</tr>
<%} %>
<tr >
<td align="center" colspan="2">
<html:submit>Next</html:submit>
</td>
</tr>
</table>
                
</body>
</html>


</html:form>
</center>

<%}else{%>
<jsp:forward page="/JSP/Login/userlogin.jsp"></jsp:forward>
<%}%>
</body>
</html>